<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h2>index界面</h2>
    姓名：<span th:text="${name}"></span>
    <hr>
    <h2>学生信息</h2>
    学号：<span th:text="${student.id}"></span><br>
    姓名：<span th:text="${student.name}"></span><br>
    成绩：<span th:text="${student.grade}"></span><br>
    状态：<span th:if="${student.grade >= 60}">通过</span>
    <span th:if="${student.grade < 60}">挂科</span>

<table border="1"  width="60%" cellspacing="0">
    <thead><th>学号</th><th>姓名</th><th>成绩</th><th>操作</th></thead>
    <tbody>
    <tr th:each="s:${list}">
        <td th:text="${s.id}"></td>
        <td th:text="${s.name}"></td>
        <td th:text="${s.grade}"></td>
        <td><a th:href="@{/student/del(id=${s.id})}">删除</a></td>
    </tr>
    </tbody>
</table>

    <a th:each="i : ${#numbers.sequence(1,6)}" th:text="${i}" style="margin-left: 10px"></a>
</body>
</html>